package com.baomidou.ant.service;

import com.baomidou.ant.entity.PinLibrary;
import com.baomidou.ant.vo.request.RequestListPinVo;
import com.baomidou.ant.vo.response.ResponseListPinVo;
import com.baomidou.ant.vo.response.ResponseListProcessInfoVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IPinLibraryService extends IService<PinLibrary> {
    //分页查询
    IPage<ResponseListPinVo> listPin(RequestListPinVo requestListPinVo);
    //查看相关工序
    ResponseListProcessInfoVo listProcessInfo(Integer pinId);
    //按品名查询
    PinLibrary queryByPinName(String pinName,Integer deptId);
    //按品名查询
    PinLibrary queryByPinName(String pinName);
    //根据用户id得到部门产品
    String[] queryByUserId(Integer userId);
    //根据部门名来查询部门产品
    String[] queryByDeptName(String deptName);
    //查询产品
    PinLibrary queryOne(Integer deptId,String Fspecification,String FMaterialId);
}
